package com.lijj.myrule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JieRule {

    @Bean
    public IRule myRule() {
        return new JieRandomRule(); //默认是轮询，现在我们自定义为自己的规则
    }
}
